//申请收房贷  小崔
import request from "@/utils/request";

//申请收房贷：收房合同查询(选中的一条)
export function searchSfAllById(sfContractId) {
  return request({
    url: '/finance/jrsfloan/searchSfAllById',
    method: 'get',
    params: {sfContractId:sfContractId}
  })
}

//金融产品选择
export function searchProduct() {
  return request({
    url: '/finance/jrsfloan/searchProduct',
    method: 'get',
  })
}

//金融产品选择(其中一条)
export function searchProductById(id) {
  return request({
    url: '/finance/jrsfloan/searchProductById',
    method: 'get',
    params: {id:id}
  })
}

//申请收房贷：计算--分期
export function listSfLoan(data) {
  return request({
    url: '/finance/jrsfloan/listSfLoan',
    method: 'get',
    params: data
  })
}


//申请收房贷：保存
export function savesf(data) {
  return request({
    url: '/finance/jrsfloan/savesf',
    method: 'post',
    data: data
  })
}
